package reflect;

import reflect.annotation.AutoRunClass;

import java.util.Scanner;

public class Test4 {
    public static void main(String[] args) throws Exception {

        Class cls = Class.forName("reflect.person");
        boolean tf = cls.isAnnotationPresent(AutoRunClass.class);

        System.out.println(tf);

//        if (tf){
//            System.out.println(san + ":被标注了！");
//        }else {
//            System.out.println(san + ":没被标注了！");
//        }
//
//        System.out.println(san + (tf?"被标记了":"没被标识"));

    }
}
